//定义本地存储token的key
const KEY='my-token-element-mobile'

//获取token的函数
export const getToken=()=>{
  return localStorage.getItem(KEY)
}

//存token的函数
export const setToken=(token)=>{
  localStorage.setItem(KEY,token)
}

//删除token
export const delToken=()=>{
  localStorage.removeItem(KEY)
}